<?php

/**
 * page actions.
 *
 * @package    tsantek-shop
 * @subpackage page
 * @author     Tomislav Šantek
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class pageActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeShow(sfWebRequest $request)
  {
    $this->page = Doctrine_Core::getTable('ShopPage')->findOneBySlug($request->getParameter('slug'));
    if(!$this->page)
        $this->redirect404();
  }
}
